/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.anism.holidays.sessionbeans;

import javax.ejb.EJB;
import javax.ejb.Singleton;
import javax.ejb.LocalBean;
import org.anism.holidays.entities.Employee;
import org.anism.holidays.facades.EmployeeFacadeLocal;

/**
 *
 * @author user
 */
@Singleton
@LocalBean
public class Authentication {
    
    @EJB
    private EmployeeFacadeLocal em;   
    
    public Employee authenticate(final String employeeId, final String password) {
        
        //Employee e = em.find(new Integer(1));
        
       // if (password.equals(e.getPassword())) {
       //     return e;
        //}

        return null;
    }  
}
